﻿@model S4Store.Models.NetMarketing.InputDayDataModel
@{
    Layout = null;
    ViewBag.Title = "InputSellerKpiDayData";
    S4Store.Domain.Administrator CurrentUser = (S4Store.Domain.Administrator)ViewBag.CurrentUser;
}

<form class="pageForm addpage" action="@Url.Action("ModifyBackInputDayData")" method="post">

<div style=" height:100%; width:100%; overflow:hidden" class="verticalSplitContainer">
    <div class="" style="overflow: auto;" ratio="#145">
        <table class="rpttable" style="border-collapse: collapse;">
            <tr height="40"  class="vtr">
 <th class="yellow"  ><div class="wd80 pd520"><div class="wd20">媒体名称</div></div></th>
  <th class="yellow" ><div class="wd20 pd530">实际发文<br />/<br />贴数</div></th>
  <th  class="yellow"><div class="wd20 pd530">点击数<br />/<br />上月关注数</div></th>
  <th  class="yellow"><div class="wd20 pd530">单击退出数<br />/<br />休眠账户数</div></th>
  <th  class="yellow"><div class="wd20 pd530">获取信息数<br />/<br />新增关注数</div></th>
  <th  class="yellow"><div class="wd20 pd530">主动来电数</div></th>
  <th  class="yellow"><div class="wd20 pd530">邀约来店数</div></th>
 </tr> 
        </table>
 </div>

<div class="" style="overflow: auto;" ratio="*">
 <table  class="rpttable"  style="border-collapse:collapse;">

        <input type="hidden" value="@Model.Date.Year" name="y" />
        <input type="hidden" value="@Model.Date.Month" name="m" />
        <input type="hidden" value="@Model.Date.Day" name="d" />
     @{int index = -1;}
     @foreach (var media in Model.Medias)
     {
             index++;
             var daydata = Model.GetDayData(media.Id);
             <tr>
             <th><div class="wd90 pd515">@media.Name
                 <input type="hidden" value="@media.Id"  name="rows[@(index)].MediaId" />
                 <input type="hidden" name="rows[@(index)].Date" value="@daydata.Date.ToString("yyyy-MM-dd")" /></div>
             </th>
              <td><div class="wd50 pd515"><input type="text" name="rows[@(index)].FTS" value="@daydata.FTS" class="w40 ipt intinput" /></div></td>
             <td><div class="wd50 pd515"><input type="text" name="rows[@(index)].DJS" value="@daydata.DJS" class="w40 ipt intinput" /></div></td>
             <td><div class="wd50 pd515"><input type="text" name="rows[@(index)].DJTCS" value="@daydata.DJTCS" class="w40 ipt intinput" /></div></td>
             <td><div class="wd50 pd515"><input type="text" name="rows[@(index)].HQXXS" value="@daydata.HQXXS" class="w40 ipt intinput" /></div></td>
             <td><div class="wd50 pd515"><input type="text" name="rows[@(index)].ZDLDS" value="@daydata.ZDLDS" class="w40 ipt intinput" /></div></td>
             <td><div class="wd50 pd515"><input type="text" name="rows[@(index)].YYLDS" value="@daydata.YYLDS" class="w40 ipt intinput" /></div></td>
             </tr>
     }
 </table>
 
 </div>
       
    @if (!Model.IsConfirmed || CurrentUser.Position == S4Store.Domain.Position.SystemManager)
    {
        <div class="formBar" ratio="#30">
            <ul>
                <li><div class="simplebutton"><div class="r"><button type="button" class="submit">保存</button></div></div></li>	
                <li>确认数据：<input type="checkbox" name="isconfirm" value="true" /></li>	
            </ul>
        </div>
    }
</div>
</form>